Space-efficient Algorithms for Visibility Problems in Simple Polygon

نویسندگان

  • Minati De
  • Anil Maheshwari
  • Subhas C. Nandy
چکیده

Given a simple polygon P consisting of n vertices, we study the problem of designing space-efficient algorithms for computing (i) the visibility polygon of a point inside P , (ii) the weak visibility polygon of a line segment inside P and (iii) the minimum link path between a pair of points inside P . For problem (i) two algorithms are proposed. The first one is an in-place algorithm where the input array may be lost. It uses only O(1) extra space apart from the input array. The second one assumes that the input is given in a read-only array, and it needs O( √ n) extra space. The time complexity of both the algorithms are O(n). For problem (ii), we have assumed that the input polygon is given in a readonly array. Our proposed algorithm runs in O(n) time using O(1) extra space. For problem (iii) the time and space complexities of our proposed algorithm are O(kn) and O(1) respectively; k is the length (number of links) in a minimum link path between the given pair of points.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Dynamic algorithms for visibility polygons

We devise dynamic algorithms for the following (weak) visibility polygon computation problems: • Maintaining visibility polygon of a fixed point located interior to simple polygon amid vertex insertions and deletions to simple polygon. • Answering visibility polygon query corresponding to any point located exterior to simple polygon amid vertex insertions and deletions to simple polygon. • Main...

متن کامل

Optimal Mesh Algorithms for Proximity and Visibility Problems in Simple Polygons*

We present optimal parallel algorithms that run in O p n time on a p n pn mesh connected computer for a number of fundamental problems concerning proximity and vis ibility in a simple polygon These include computing shortest paths shortest path trees shortest path partitions all farthest neighbors the visibility polygon of a point the weak visibility polygon of an edge and the ray shooting problem

متن کامل

Optimal Mesh Computer Algorithms for Simple Polygons

We present optimal parallel algorithms that run in O(p n) time on a p n p n mesh-connected computer for a number of fundamental problems concerning visibility and distance properties inside a simple polygon. These include computing shortest paths, shortest path trees, shortest path partitions, all-farthest neighbors (both internal and external), the visibility polygon of a point, the weak visib...

متن کامل

Weak Visibility Queries of Line Segments in Simple Polygons

Given a simple polygon P in the plane, we present new algorithms and data structures for computing the weak visibility polygon from any query line segment in P . We build a data structure in O(n) time and O(n) space that can compute the visibility polygon for any query line segment s in O(k log n) time, where k is the size of the visibility polygon of s and n is the number of vertices of P . Al...

متن کامل

Visibility Queries in Simple Polygons and Applications

In this paper we explore some novel aspects of visibility for stationary and moving points inside a simple polygon P . We provide a mechanism for expressing the visibility polygon from a point as the disjoint union of logarithmically many canonical pieces using a quadratic-space data structure. This allows us to report visibility polygons in time proportional to their size, but without the cubi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1204.2634  شماره 

صفحات  -

تاریخ انتشار 2012